package com.ruoyi.business.service;

import com.ruoyi.business.domain.VerificationRecord;
import com.ruoyi.business.domain.Withdrawal;

import java.util.List;

/**
 * 核销记录Service接口
 * 
 * @author ruoyi
 * @date 2024-09-11
 */
public interface IVerificationRecordService 
{
    /**
     * 查询核销记录
     * 
     * @param id 核销记录主键
     * @return 核销记录
     */
    public VerificationRecord selectVerificationRecordById(Long id);

    /**
     * 查询核销记录列表
     * 
     * @param verificationRecord 核销记录
     * @return 核销记录集合
     */
    public List<VerificationRecord> selectVerificationRecordList(VerificationRecord verificationRecord);

    /**
     * 新增核销记录
     * 
     * @param verificationRecord 核销记录
     * @return 结果
     */
    public int insertVerificationRecord(VerificationRecord verificationRecord);

    /**
     * 修改核销记录
     * 
     * @param verificationRecord 核销记录
     * @return 结果
     */
    public int updateVerificationRecord(VerificationRecord verificationRecord);

    /**
     * 批量删除核销记录
     * 
     * @param ids 需要删除的核销记录主键集合
     * @return 结果
     */
    public int deleteVerificationRecordByIds(Long[] ids);

    /**
     * 删除核销记录信息
     * 
     * @param id 核销记录主键
     * @return 结果
     */
    public int deleteVerificationRecordById(Long id);

    //累计收入
    public VerificationRecord selectSum(Double mId);

    //当前余额
    public VerificationRecord selectBalance(Integer mId);

//    Integer getBalance(Integer mid);

    public List<Withdrawal> selectByMid(Integer mId);
}
